<%--
  Created by IntelliJ IDEA.
  User: ZT171
  Date: 2024/9/27
  Time: 17:28
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" href="./statics/layui/css/layui.css">
    <style>
        table{
            width: 800px !important;
            margin: 0 auto !important;
        }
    </style>
</head>
<body>
<p><a href="addUser.jsp">新增用户</a></p>
    <colgroup>
        <col width="150">
        <col width="150">
        <col>
        <col>
    </colgroup>
    <table class="layui-table" lay-even>
        <colgroup>
            <col width="150">
            <col width="150">
            <col>
        </colgroup>
        <thead>
        <tr>
            <th>编号1</th>
            <th>名字</th>
            <th>密码</th>
            <th>操作</th>
        </tr>
        </thead>

        <tbody>
        <c:forEach items="${users}" var="user">
            <tr>
                <td>${user.id}</td>
                <td>${user.name}</td>
                <td>${user.pass}</td>
                <td>
                    <a href="toupdate?id=${user.id}">修改</a>
                    <a href="delete?id=${user.id}">删除</a>
                </td>
            </tr>
        </c:forEach>

        </tbody>
    </table>



</body>
</html>
